<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <title>订单列表</title>
    <link
      href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
      rel="stylesheet"
    />
  </head>
  <body>
    <div class="container mt-5">
      <h1 class="text-center">订单列表</h1>
      <ul class="list-group mt-4">
        {% for order in orders %}
        <li class="list-group-item">
          <a href="{% url 'order_detail' order.id %}"
            >订单号: {{ order.id }} - 状态: {{ order.get_status_display }}</a
          >
        </li>
        {% endfor %}
      </ul>
    </div>
  </body>
</html>
